package com.pattern.factory;

import com.pattern.factory.pizza.Pizza;

public abstract class PizzaStore {
	Pizza orderPizza(String type) {
		Pizza pizza = createPizza(type);

		pizza.prepare();
		pizza.bake();
		pizza.cut();
		pizza.box();

		return pizza;
	}

	public abstract Pizza createPizza(String type);
}